package today.rocky.boot.security.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import today.rocky.boot.security.entity.UserInfo;
import today.rocky.boot.security.repository.UserInfoRepository;
import today.rocky.boot.security.service.UserInfoService;

/**
 * @author Rocky
 * @version 1.0
 * @date 2020/5/13 10:13
 */
@Service
public class UserInfoServiceImpl implements UserInfoService {
	@Autowired
	private UserInfoRepository userInfoRepository;

	@Override
	public UserInfo findByUsername(String name) {
		return userInfoRepository.findByusername(name);
	}
}
